package fun.sanguo.mapper.sys;

import fun.sanguo.model.entity.sys.SysVersionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import fun.sanguo.utils.sqlBuilder.SqlBuilderSysVersion;

import java.util.List;

/**
 * 版本信息表 Mapper接口
 *
 * @author ZYP
 * @date 2022-10-18
 */
@Mapper
public interface SysVersionMapper {

    /**
     * 查询最新版本
     *
     * @return
     */
    @SelectProvider(type = SqlBuilderSysVersion.class, method = "getLastVersion")
    SysVersionEntity getLastVersion();

    /**
     * 查询版本记录
     *
     * @return
     */
    @SelectProvider(type = SqlBuilderSysVersion.class, method = "getReleaseHistory")
    List<SysVersionEntity> getReleaseHistory();
}
